package com.jy.web.diy.entity;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jy.framework.base.BaseEntity;
import cn.afterturn.easypoi.excel.annotation.Excel;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

import lombok.Getter;
import lombok.Setter;

/**
 * 基础表
 *
 * @author JuiceYan
 * @email JuiceYan@jy.com
 * @date 2018-12-22 20:55:46
 */
@ApiModel(value = "基础表")
@TableName("diy_base_info")
@Getter
@Setter
public class BaseInfoEntity extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    @ApiModelProperty(value = "主键")
@Excel(name = "主键")
    private String id;
    /**
     * 分类id
     */
    @ApiModelProperty(value = "分类id")
@Excel(name = "分类id")
    private Long categoryId;    /**
     * 分类编码
     */
    @TableField(exist = false)
    private String code;
    /**
     * 分类名
     */
    @TableField(exist = false)
    private String categoryName;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
@Excel(name = "排序")
    private Long orderNum;
    @TableField(exist = false)
    private List<Map<String, Object>> attributes;
    @TableField(exist = false)
    private List<AttributeEntity> attributeList;
}
